/** When your routing ele is too long, you can split it into small modules **/

import Layout from '@/layout'

const eleRouter = {
  path: '/ele',
  component: Layout,
  redirect: '/ele/elevator',
  name: 'ele',
  meta: {
    title: '备案管理',
    icon: 'ele'
  },
  children: [
    {
      path: 'elevator',
      component: () => import('@/views/ele/elevator'),
      name: 'elevator',
      meta: {
        title: '电梯档案',
        authorities: ["ele:elevator"]
      }
    },
    {
      path: 'careUnit',
      component: () => import('@/views/ele/unit'),
      name: 'careUnit',
      meta: {
        title: '维保单位',
        divideType: 1,
        authorities: ["ele:careUnit"]
      }
    },
    {
      path: 'careGroup',
      component: () => import('@/views/ele/group'),
      name: 'careGroup',
      meta: {
        title: '维保班组',
        divideType: 1,
        authorities: ["ele:careGroup"]
      }
    },
    {
      path: 'careUser',
      component: () => import('@/views/ele/user'),
      name: 'careUser',
      meta: {
        title: '维保人员',
        divideType: 1,
        authorities: ["ele:careUser"]
      }
    },
    {
      path: 'useUnit',
      component: () => import('@/views/ele/unit'),
      name: 'useUnit',
      meta: {
        title: '使用单位',
        divideType: 2,
        authorities: ["ele:useUnit"]
      }
    },
    {
      path: 'useGroup',
      component: () => import('@/views/ele/group'),
      name: 'useGroup',
      meta: {
        title: '使用班组',
        divideType: 2,
        authorities: ["ele:useGroup"]
      }
    },
    {
      path: 'useUser',
      component: () => import('@/views/ele/user'),
      name: 'useUser',
      meta: {
        title: '使用人员',
        divideType: 2,
        authorities: ["ele:useUser"]
      }
    }
  ]
}
export default eleRouter
